<template>
    <TheForm
      ref="formRefs"
      title="退款记录"
      :api="refundViewApi"
      :options="refundViewOptions"
    >
      <template v-slot:status="{ slotProps }">
        {{ slotProps.title }}
      </template>
      <template v-slot:createUser="{ slotProps }">
        {{ slotProps.title }}
      </template>
      <template v-slot:createTime="{ slotProps }">
        {{ slotProps.title }}
      </template>
      <template v-slot:examineUser="{ slotProps }">
        {{ slotProps.title }}
      </template>
      <template v-slot:examineTime="{ slotProps }">
        {{ slotProps.title }}
      </template>
      <template v-slot:finishTime="{ slotProps }">
        {{ slotProps.title }}
      </template>
    </TheForm>
  </template>
  
  <script>
  import TheForm from "@/components/TheCreateForm";
  export default {
    components: {
      TheForm,
    },
    data() {
      return {
        refundViewApi: null,
        refundViewOptions: [
          {
            type: "status",
            field: "status",
            title: "状态",
            slot: "status",
          },
          {
            type: "select",
            field: "stockLibraryCode",
            title: "退款商家",
            default: "",
            placeholder: "请选择...",
            api: null,
          },
  
          {
            type: "input-number",
            field: "libraryName",
            title: "退款金额",
            default: "",
            placeholder: "请输入...",
          },
          {
            type: "select",
            field: "stockLibraryCode",
            title: "退款渠道",
            placeholder: "请选择...",
            options: [
              { label: "支付宝", value: "alipay" },
              { label: "微信", value: "weChat" },
              { label: "银行卡", value: "bank" },
              { label: "其他", value: "other" },
            ],
          },
          {
            type: "upload",
            field: "libraryAddressDetail",
            title: "转账凭证",
            default: [],
          },
          {
            type: "textarea",
            field: "remark",
            title: "备注",
            default: "",
          },
          {
            type: "createUser",
            field: "createUser",
            title: "发起人",
            default: "",
            slot: "createUser",
          },
          {
            type: "createTime",
            field: "createTime",
            title: "发起时间",
            default: "",
            slot: "createTime",
          },
  
          {
            type: "examineUser",
            field: "examineUser",
            title: "审批人",
            default: "",
            slot: "examineUser",
          },
          {
            type: "examineTime",
            field: "examineTime",
            title: "审批时间",
            default: "",
            slot: "examineTime",
          },
          {
            type: "finishTime",
            field: "finishTime",
            title: "完成时间",
            default: "",
            slot: "finishTime",
          },
        ],
      };
    },
    mounted() {},
    methods: {},
  };
  </script>
  